package com.cdc.servlet2;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.GenericServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import com.cdc.common.CommonTool;

public class Servlet2 extends GenericServlet{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8956078118743254740L;

	@Override
	public void service(ServletRequest arg0, ServletResponse arg1) throws ServletException, IOException {
		// TODO Auto-generated method stub
		arg0.setCharacterEncoding("UTF-8");
		arg1.setContentType("text/html");
		ServletConfig servletConfig=getServletConfig();
		
		PrintWriter pri=arg1.getWriter();
		CommonTool commonTool=new CommonTool();
		pri.write(commonTool.getHtml(arg0,servletConfig));
	}

}
